import VueRouter from "vue-router"
import Home from "./components/topbar/Home.vue"
import Member from "./components/topbar/Member.vue"
import Shopcar from "./components/topbar/Shopcar.vue"
import Search from "./components/topbar/Search.vue"
import Newslist from "./components/topbar/newslist.vue"
import newsInfo from "./components/topbar/newsInfo.vue"
var router = new VueRouter({
    routes: [
        { path: "/", redirect: "/Home" },
        { path: "/Home", component: Home },
        { path: "/Member", component: Member },
        { path: "/Shopcar", component: Shopcar },
        { path: "/Search", component: Search },
        { path: "/Home/newslist", component: Newslist },
        { path: "/Home/newsInfo/:id", component: newsInfo },
    ],
    linkActiveClass: "mui-active"
})
export default router